<%@ page import="TeachLesson.CourseWork.CourseWorkEnity" %>
<%@ page import="TeachLesson.CourseWork.CourseWorkDao" %>
<%@ page import="Course.CourseEnity" %>
<%@ page import="Course.CourseDao" %>
<%@ page import="com.mysql.cj.Session" %>
<%@ page import="TeachLesson.TeachLessonsDao" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/8/25
  Time: 16:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<%
    String courseNo=request.getParameter("courseNo");
    String workerNo=request.getParameter("workerNo");
    CourseEnity courseEnity;
    CourseDao courseDao=new CourseDao();
    courseEnity=courseDao.getCourse(courseNo);
    TeachLessonsDao teachLessonsDao=new TeachLessonsDao();
    String CIntroduce=teachLessonsDao.getIntroduce(workerNo,courseNo);
    session.setAttribute("courseNo",courseEnity.getCourseNo());
%>
<head>
    <title><%=courseEnity.getCourseName()%></title>
    <link href="/SystemerNav/SystemerNav.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>

<body background="/LoginInterface/loginFace.jpg">
    <div class="container">
        <div class="top">
            <ul class="nav nav-pills">
                <li role="presentation" class="active"><a href="StudentLesson.jsp?courseNo=<%=request.getParameter("courseNo")%>&workerNo=<%=request.getParameter("courseNo")%>">首页</a></li>
                <li role="presentation"><a href="myWork.jsp?courseNo=<%=request.getParameter("courseNo")%>&workerNo=<%=request.getParameter("workerNo")%>">我的作业</a></li>
                <li role="presentation"><a href="CourseResourse.jsp?courseNo=<%=request.getParameter("courseNo")%>&workerNo=<%=request.getParameter("workerNo")%>">课程资源</a></li>
            </ul>
         <form>
             <label>课程介绍</label>
        <textarea class="form-control" rows="5" readonly><%=CIntroduce%></textarea>
         </form>
            <table class="table table-hover">
            <tr class="active">
                <td>课程编号</td>
                <td><%=courseEnity.getCourseNo()%></td>
            </tr>
            <tr class="success">
                <td>课程名字</td>
                <td><%=courseEnity.getCourseName()%></td>
            </tr>
            <tr class="warning">
                <td>上课地点</td>
                <td><%=courseEnity.getClassRoom()%></td>
            </tr>
            <tr class="danger">
                <td>学分</td>
                <td><%=courseEnity.getCredit()%></td>
            </tr>
            <tr class="info">
                <td>总学时</td>
                <td><%=courseEnity.getClassHour()%></td>
            </tr>
        </table>
    </div>
</div>
</body>
</html>
